package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.business.entity.TraceScanEntity;
import com.yenlien.traceyun.business.trace.Trace;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 采收管理
 *
 * @author maybe
 * @date 2020年7月27日
 */
@Entity
@Table(name = "t_plant_reap")
@Trace(appName = "plant", stepName = "reap", order = 2)
public class Reap extends TraceScanEntity {
    //===============种植信息===============
    @Column
    private String plantBaseId;        //种植基地ID
    @Column
    private String plantBaseName;    //种植基地名称
    @Column
    private String soilId;            //地块ID
    @Column
    private String soilName;        //地块名称
    @Column
    private String plantBatch;        //种植批次号
    @Column
    private String plantTime;        //种植时间
    @Column
    private String jyName;            //基源名称
    @Column
    private String plantImg;        //种苗图片
    //===============采收信息===============
    @Column
    private String reapWay;            //采收方式
    @Column
    private String reapArea;        //采收面积
    @Column(name = "batch", length = 30)
    private String batch;        //采收批次号
    @Column
    private String reapUserId;        //采收人ID
    @Column
    private String reapUserName;    //采收人名字
    @Column
    private String beginTime;        //开始时间
    @Column
    private String endTime;            //结束时间
    //===============关联信息===============
    @Transient
    private List<ReapDetail> list;

    @Transient
    private ReapDetail reapDetail;


    @Transient
    private String reapDetailList;
    @Transient
    private int reapStatus;
    @Transient
    @ApiModelProperty(value = "预估采收天数, 结束时间(endTime) - 开始时间(beginTime)")
    private Integer reapDays;

    @Transient
    @ApiModelProperty(value = "产物名称")
    private String reapName;
    @Transient
    @ApiModelProperty(value = "采收部位")
    private String reapPart;




    public ReapDetail getReapDetail() {
        return reapDetail;
    }

    public void setReapDetail(ReapDetail reapDetail) {
        this.reapDetail = reapDetail;
    }

    public String getReapPart() {
        return reapPart;
    }

    public void setReapPart(String reapPart) {
        this.reapPart = reapPart;
    }

    public String getReapName() {
        return reapName;
    }

    public void setReapName(String reapName) {
        this.reapName = reapName;
    }

    public Integer getReapDays() {
        return reapDays;
    }

    public void setReapDays(Integer reapDays) {
        this.reapDays = reapDays;
    }

    public String getPlantBaseId() {
        return plantBaseId;
    }

    public void setPlantBaseId(String plantBaseId) {
        this.plantBaseId = plantBaseId;
    }

    public String getPlantBaseName() {
        return plantBaseName;
    }

    public void setPlantBaseName(String plantBaseName) {
        this.plantBaseName = plantBaseName;
    }

    public String getSoilId() {
        return soilId;
    }

    public void setSoilId(String soilId) {
        this.soilId = soilId;
    }

    public String getSoilName() {
        return soilName;
    }

    public void setSoilName(String soilName) {
        this.soilName = soilName;
    }

    public String getPlantBatch() {
        return plantBatch;
    }

    public void setPlantBatch(String plantBatch) {
        this.plantBatch = plantBatch;
    }

    public String getPlantTime() {
        return plantTime;
    }

    public void setPlantTime(String plantTime) {
        this.plantTime = plantTime;
    }

    public String getJyName() {
        return jyName;
    }

    public void setJyName(String jyName) {
        this.jyName = jyName;
    }

    public String getReapWay() {
        return reapWay;
    }

    public void setReapWay(String reapWay) {
        this.reapWay = reapWay;
    }

    public String getReapArea() {
        return reapArea;
    }

    public void setReapArea(String reapArea) {
        this.reapArea = reapArea;
    }

    public String getReapUserId() {
        return reapUserId;
    }

    public void setReapUserId(String reapUserId) {
        this.reapUserId = reapUserId;
    }

    public String getReapUserName() {
        return reapUserName;
    }

    public void setReapUserName(String reapUserName) {
        this.reapUserName = reapUserName;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public List<ReapDetail> getList() {
        return list;
    }

    public void setList(List<ReapDetail> list) {
        this.list = list;
    }

    public String getReapDetailList() {
        return reapDetailList;
    }

    public void setReapDetailList(String reapDetailList) {
        this.reapDetailList = reapDetailList;
    }

    public int getReapStatus() {
        return reapStatus;
    }

    public void setReapStatus(int reapStatus) {
        this.reapStatus = reapStatus;
    }

    public String getPlantImg() {
        return plantImg;
    }

    public void setPlantImg(String plantImg) {
        this.plantImg = plantImg;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }
}
